package com.example.operator;

/**
 * 赋值运算符
 */
public class OperatorDemo03 {
    public static void main(String[] args) {
        double a=520;
        double b=9.5;
        a+=b; // 等价于a=(a的数据类型)(a+b)
        System.out.println(a);

        double i=600;
        double j=520;
        i-=j;
        System.out.println(i);

        byte x=10;
        byte y=30;
//        x=x+y;
        x=(byte)(x+y);
//        x+=y;
        System.out.println(x);

    }
}
